package cn.hs.mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

import cn.hs.entity.Demo;
import org.springframework.stereotype.Repository;

/**
* @author 86175
* @description 针对表【demo】的数据库操作Mapper
* @createDate 2024-10-21 14:33:51
* @Entity cn.hs.entity.Demo
*/
@Repository
public interface DemoMapper {
    //查询所有包括模糊查询
    List<Demo> selectAll(Demo demo);
    //根据Id查询
    List<Demo> selectById(@Param("id") Integer id);
    //添加
    int insertAll(Demo demo);
    //更新
    int updateSelective(Demo demo);
    //删除
    int deleteById(@Param("id") Integer id);


}
